Constants

enum Constants : ProtocolMessageEnum

Shared constants between device and phone
Protobuf enum meshtastic.Constants

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

From mesh.options
note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
outside of this envelope
DATA_PAYLOAD_LEN = 233;
Link copied to clipboard
val ZERO_VALUE: Int = 0

First enum must be zero, and we are just using this enum to
pass int constants between two very different environments
ZERO = 0;

Functions

Link copied to clipboard
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<MeshProtos.Constants>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): MeshProtos.Constants
open fun valueOf(value: Int): MeshProtos.Constants

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.